#ifndef _LIB_H
#define _LIB_H

#define container_of(ptr,type,member)                                        \
({                                                                           \
        typeof(((type *)0)->member) * p = (ptr);                             \
        (type *)((unsigned long)p - (unsigned long)&(((type *)0)->member));  \
})


#endif 

